﻿using FireUI.Themes.WPF.Helper;
using Prism.Mvvm;
using System;
using System.Collections.ObjectModel;

namespace FireUI.Windows.ViewModels
{
    public class FireIconViewModel : BindableBase
    {
        public class FireIconItem
        {
            public FireIconKind Kind { get; set; }
            public string Name { get; set; }
        }

        private ObservableCollection<FireIconItem> _iconItems;

        public ObservableCollection<FireIconItem> IconItems
        {
            get => _iconItems;
            set => SetProperty(ref _iconItems, value);
        }

        public FireIconViewModel()
        {
            _iconItems = new ObservableCollection<FireIconItem>();
            foreach (FireIconKind kind in Enum.GetValues(typeof(FireIconKind)))
            {
                _iconItems.Add(new FireIconItem { Kind = kind, Name = kind.ToString() });
            }
        }
    }
}